package com.zkingsoft.rhi.mapper;

import com.zkingsoft.rhi.entity.ExportDetailedImmovableHistoricalRelics;
import com.zkingsoft.rhi.entity.ExportImmovableHistoricalRelics;
import com.zkingsoft.rhi.entity.ImmovableHistoricalRelics;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 * 不可移动文物表 Mapper 接口
 * </p>
 *
 * @author xieguo
 * @since 2020-11-04
 */
public interface ImmovableHistoricalRelicsMapper extends BaseMapper<ImmovableHistoricalRelics> {

    int batchInsert(@Param("list") List<ImmovableHistoricalRelics> list);

    int batchUpdate(@Param("list") List<ImmovableHistoricalRelics> list);

    List<ExportImmovableHistoricalRelics> queryAll();

    List<ExportDetailedImmovableHistoricalRelics> queryDetailedAll();

    int batchUpdateFieldIsNull(@Param("ihr") ImmovableHistoricalRelics ihr,@Param("list") List<Integer> idsList);

    int deleteAll();

    List<ExportImmovableHistoricalRelics> queryById(@Param("list") List<Integer> idsList);

    List<ExportDetailedImmovableHistoricalRelics> queryDetailedById(@Param("list") List<Integer> idsList);

}
